package com.example.designpatterns.factory.abstractfactory;



public class Main {
    /**
     *
     */
    public static void main(String[] args) {
        AbstractFactory a = new ModernFactory();
        Vehicle vehicle = a.createVehicle();
        vehicle.go();
        Food food = a.createFood();
        food.printName();
        Weapon weapon = a.createWeapon();
        weapon.shoot();

    }
}
